from setuptools import setup
from setuptools import find_packages
import os

package_name = 'cable_simulator'

setup(
    name=package_name,
    version='0.0.0',
    packages=find_packages(exclude=['test']),  # 关键：自动找到cable_simulator模块
    data_files=[
    ('share/ament_index/resource_index/packages',
        ['resource/' + package_name]),
    ('share/' + package_name, ['package.xml']),
    # 新增launch文件安装配置
    (os.path.join('share', package_name, 'launch'), [
        'launch/cable_simulator.launch.py',
        'launch/visual.launch.py',
    ]),],
    install_requires=['setuptools'],
    zip_safe=True,
    maintainer='cheng',
    maintainer_email='cheng@example.com',
    description='Steel cable pointcloud simulator',
    license='Apache-2.0',
    extras_require={
        'test': ['pytest'],
    },
    entry_points={
        'console_scripts': [
            'cable_sim = cable_simulator.cable_pointcloud_simulator:main',
            'pointcloud_vis = cable_simulator.pointcloud_visualizer:main',
            'visual = cable_simulator.visual:main',
        ],
    },
)
